import axios from 'axios';

export async function index(pageSize, page) {
  const result = await axios.get('/api/screening/conditions?pageSize='+ pageSize + '&page=' + page);
  return result ? result : false;
}

export async function app() {
  const result = await axios.get('/api/charles/app');
  return result ? result : false;
}

export async function add(data) {
  const result = await axios.post('/api/screening/conditions', data);
  return result ? result : false;
}

export async function edit(id, data) {
  const result = await axios.put('/api/screening/conditions/'+ id, data);
  return result ? result : false;
}